package com.wzy.java;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class test19 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<>();
        map.put("1","AAAA");
        map.put("2","BBBB");
        map.put("3","CCCC");
        map.put("4","DDDD");
        map.put("5","EEEE");
        List<Object> list= map.entrySet().stream().map(et ->et.getValue()).collect(Collectors.toList());

        list.forEach(obj-> System.out.println(obj));
    }
}
